#include <stdio.h>
#include <string.h>

void count_data(int *num1,int *num2,int *num3)
{
	char buf[1024] = {0};
	fgets(buf,1024,stdin);
	puts(buf);
	putchar('\n');
	int number = strlen(buf)-1;
	printf("number=%d\n",number);
	int i = 0;
	int x,y=0;
	for(i=0;i<number;i++)
	{
		if(buf[i] >= 'a' && buf[i] <= 'z')
		{
			++x;
		}
		else if(buf[i] >= 'A'  && buf[i] <= 'Z')
		{
			++y;
		}
		else if(buf[i] >= '0' && buf[i] <= '9')
		{
			*num2 =*num2+ 1;
		}
	}
	*num3 = number;
	*num1 = x + y;
}

int main()
{
	int char_num = 0;
	int data_num = 0;
	int total_num = 0;
	count_data(&char_num,&data_num,&total_num);
	printf("total_num=%d\n char_num=%d\n data_num=%d\n",total_num,char_num,data_num);

	return 0;
}
